package com.f9miao.starter.oss;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(prefix = "oss.minio")
public class MinioProperties {

    private static final Logger logger = LoggerFactory.getLogger(MinioProperties.class);

    private Boolean enable = false;

    private String host = "http://localhost:9000";

    private String accessKey = "minioadmin";

    private String secretKey = "minioadmin";

    private List<String> buckets = new ArrayList<>();

    public Boolean getEnable() {
        return enable;
    }

    public String getHost() {
        return host;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public List<String> getBuckets() {
        return buckets;
    }

    public void setBuckets(List<String> buckets) {
        this.buckets = buckets;
    }

}
